import {createFromIconfontCN} from "@ant-design/icons";

/**
 * 全局初始化处理器
 */
class InitHandler {
    private static readonly instance = new InitHandler() ;
    private static readonly IconFont = createFromIconfontCN({
        scriptUrl: ['//at.alicdn.com/t/c/font_4385938_gmjpgqvfdlv.js' ,
            '//at.alicdn.com/t/c/font_4134746_i0gkiy5xmb.js']
    });
    private constructor() {
    }

    public static getInstance(): InitHandler {
        // log.debug("获取全局初始化处理器") ;
        return this.instance ;
    }

    public getIconFont(): typeof InitHandler.IconFont {
        return InitHandler.IconFont ;
    }


}


export default InitHandler;